<?php
//============================================
include_once("module/job/lang/".$config['language']."/lang_hr_config.php");
include_once("module/job/lang/".$config['language']."/index.php");
$tpl->assign("hrmoney",$hrmoney);
$tpl->assign("job_type",$job_type);
$tpl->assign("degree",$degree);
if(!empty($_GET['id']))
{
	$sql="select a.*,b.catname,u.email from ".RESUME." a left join ".ALLUSER." u on a.userid=u.userid left join ".HRCAT." b on b.id=a.scatid where a.rid=$_GET[id] order by a.time desc";
	$db->query($sql);
	$re=$db->fetchRow();
	$re['education']=explodearr($re['education']);
	$re['experience_detail']=explodearr($re['experience_detail']);
	$re['language']=explode(",", $re['language']);
	$tpl->assign("resume",$re);
}
function explodearr($str)
{
	$arr=explode("|", $str);
	foreach($arr as $k=>$val){  
		$arr[$k]=explode(",", $val);
	}
	return $arr;
}
////==201208015 小郑===
//==获取本周热点数据Start====        
        $wtime=strtotime(date('Y-m-d', time()-86400*date('w')));//获取本周第一天的时间，这里以星期天为每周的第一天。
        $sql="select nid,title from ".NEWSD." where classid!=160 and uptime>$wtime order by onclick desc limit 9";
        $db->query($sql);
        $weektop=$db->getRows();
        

$tpl->assign("weektop",$weektop);

$tpl->assign("current","job");
include_once("footer.php");
$out=tplfetch("resume_detail.htm");
?>